<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@page import="java.util.Date"%>
<%@ include file="../../admin.inc.jsp"%>

<div class="pageHeader">
	<form method="post" id="pagerForm" action="${webContextPath}/admin/graphicsOrder/list" onsubmit="return navTabSearch(this)">
	<input type="hidden" name="pageNum" id="pageNum" value="${pageInfo.pageNum}" />
	<input type="hidden" name="numPerPage" id="numPerPage" value="${pageInfo.numPerPage}"/>
	<div class="searchBar">
		<ul class="searchContent">	
			<li>
				<label>订单号：</label>
				<input type="text" name="orderNumber" value="${orderNumber}" class="textInput">
			</li>
			
			<li>
				<label>订单状态：</label>
				<select id = "type" name="status" >
					<option value="" ></option>
					<option value="01"  ${status=="01"?"selected":""}>待付款</option>
					<option value="02"  ${status=="02"?"selected":""}>已付款</option>
				</select>
			</li>
			
			<li>
				<label>商品名称：</label>
				<input id="subjectName"  type="text" name="subjectName" value="${subjectName}" class="textInput">
			</li>
		
			<li>
				<label>下单时间：</label>
				<input id="createBeginTime"  class="Wdate" type="text"  name="createBeginTime" 
				value="<fmt:formatDate value='${createBeginTime}' pattern="yyyy-MM-dd HH:mm:ss" />"  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" readonly="true">
				<a class="inputDateButton" style="float:right; "  href="javascript:;">选择</a>
			</li>
			
			<li>
				<label>        -</label>	
				<input id="createEndTime"  class="Wdate" type="text"  name="createEndTime" 
				value="<fmt:formatDate value='${createEndTime}' pattern="yyyy-MM-dd HH:mm:ss" />"  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" readonly="true">
				<a class="inputDateButton" style="float:right; "  href="javascript:;">选择</a>
			</li>
		
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent j-resizeGrid">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a iconClass="page_white_text" href="${webContextPath}/admin/graphicsOrder/detail?orderNumber={orderNumber}" target="navTab" mask="true"
               width="530" height="500" title="查看详情" rel="graphicsOrderDetail">
               <span>查看详情</span>
            </a></li>
		</ul>
	</div>
	<div class="grid" layouth="90" style="width: 1149px; overflow: auto;">
	<table class="table" width="100%">
		<thead>
			<tr>
				<th width="150">订单号</th>
				<th width="120">商品</th>
				<th width="30">数量</th>
				<th width="70">总金额</th>
				<th width="70">用户</th>
				<th width="100">用户电话</th>
				<th width="50">订单状态</th>
				<th width="250">支付交易号</th>
				<th width="120">下单时间</th>
				<th width="120">付款时间</th>
			</tr>
		</thead>
		<tbody style="text-align:center">
			<c:forEach var="item" items="${list}">
				<tr target="orderNumber" rel="${item.orderNumber}" style="">
					<td>${item.orderNumber}</td>
					<td>${item.subjectName}</td>
					<td>${item.subjectNum}</td>
					<td>${item.totalAmount }</td>
					<td>${item.name}</td>
					<td>${item.phoneNo}</td>
					<td>${item.status=='01'?"未付款":"已付款"}</td>
					<td>${item.tradeNo}</td>
					<td><fmt:formatDate value='${item.createTime}' pattern="yyyy-MM-dd HH:mm" /></td>
					<td><fmt:formatDate value='${item.payTime}' pattern="yyyy-MM-dd HH:mm" /></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	</div>
	<div class="panelBar" style="bottom:0px">
		<div class="pages">			
			<span>共${size}条</span>
		</div>
		<div class="pagination" targettype="navTab" totalcount="${size}" 
		numperpage="${pageInfo.numPerPage}" pagenumshown="10" currentpage="${pageInfo.pageNum}">
		</div>
	</div>
</div>